#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>

static GtkWidget *entry;


/*-------------------------------------------------------------------------------------*/
//主函数:main()
int main(int argc,char* argv[])
{
    /*创建指向GtkWidget类型的指针*/
    GtkWidget *window;
    GtkWidget *scrolled;
    GtkBuilder *builder = NULL;
    GtkWidget *text;
    
    /*初始化*/
    gtk_init(&argc,&argv);

    builder=gtk_builder_new();
    gtk_builder_add_from_file(builder,"glade.glade",NULL);
    gtk_builder_connect_signals(builder, NULL);
    // // 根据 ID 获取子构件 
    window=GTK_WIDGET(gtk_builder_get_object(builder,"window1")); 
    scrolled=GTK_WIDGET(gtk_builder_get_object(builder,"scrolledwindow1")); 

    g_object_unref(G_OBJECT(builder)); 
    gtk_widget_show_all(window);
    gtk_main();
    return 0;
}